Only respond to selection with button 1. This allows context-sensitive
authorOwen Taylor <otaylor@gtk.org>
Fri, 19 Jun 1998 03:12:19 +0000 (03:12 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 19 Jun 1998 03:12:19 +0000 (03:12 +0000)
Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtklist.c (gtk_list_button_press): Only respond
  to selection with button 1. This allows context-sensitive
  menus to work correctly.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtklist.c

index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index 2bfd7a1d5feda8c5459bcf390c18263286558c1b..61e10299c4231a589a8b8ee49fe1120dc653a7ca 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gtk/gtklist.c (gtk_list_button_press): Only respond
+         to selection with button 1. This allows context-sensitive
+         menus to work correctly.
+
 Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkaccelgroup.c: 
index fcba63c2fc8b3b90b079695e4e3d8d817d8e05c2..c9797c34b318808634a36e7b5255ea029a84fb1e 100644 (file)
@@ -757,7 +757,7 @@ gtk_list_button_press (GtkWidget      *widget,
   list = GTK_LIST (widget);
   item = gtk_get_event_widget ((GdkEvent*) event);
 
-  if (list->button && (list->button != event->button))
+  if ((event->button != 1) || (list->button))
     return FALSE;
   
   while (item && !GTK_IS_LIST_ITEM (item))